package com.yzzrjy.controller.commonservlet;

import com.yzzrjy.data.QiNiu;
import com.yzzrjy.util.ResponseUtils;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;

@WebServlet(name = "GetQinNiuTokenServlet", value = "/getQinNiuToken")
public class GetQinNiuTokenServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

        String qiNiuToken = QiNiu.getToken();
        ResponseUtils.success(response, qiNiuToken);
    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }
}
